﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<brjostagjof.Models.SurveyContainer>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Bæta við könnun
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Bæta við könnun</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            
            <div>
                Spurning
                <input type="text" id="question" name="question" />
            </div>

            <div>
                Valmöguleikar:
            </div>

            <div id="choiceOptions">
                <div>
                    1: <input type="text" name="option1" id="option1" />
                </div>
                <div>
                    2: <input type="text" name="option2" id="option2" />
                </div>
            </div>
            <p id="optionButtonMore" class="permalink">Bæta við valmöguleika</p>
            <p id="optionButtonLess" class="permalink">Fækka valmöguleikum</p>

            <p>
                <input type="submit" value="Staðfesta" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Hætta við", "Index") %>
    </div>
<script type="text/html" id="optionsTemplate">
<div id="remove${remove}">
    ${remove}: <input type="text" name="option${remove}" id="option${remove}" />
</div>
</script>
</asp:Content>

